package com.jxsm.cz.biz;

import com.jxsm.cz.model.UserSign;
import com.jxsm.jfinal.core.JxBiz;

/**
 * @author guodegen
 * @description
 * @date 2020/9/10 16:40
 */
public class BizUserSign extends JxBiz<UserSign> {
    @Override
    public String add(UserSign userSign, Object... objects) {
        userSign.save();
        return this.getErrorCode();
    }

    @Override
    public String edit(UserSign userSign, Object... objects) {
        userSign.update();
        return this.getErrorCode();
    }

    @Override
    public String delete(Object o) {
        UserSign.dao.deleteById(o);
        return this.getErrorCode();
    }
}
